package org.example.dolph.model;

import com.alibaba.fastjson2.JSON;

public class TaskDetail {

    private String taskParams;

    private String sql;

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public String getTaskParams() {
        return taskParams;
    }

    public void setTaskParams(String taskParams) {
        this.taskParams = taskParams;
    }

    public SeaTaskParam getSeaTaskParams() {
        return JSON.parseObject(taskParams,SeaTaskParam.class);
    }

    public static class SeaTaskParam {
        private String deployMode;
        private String rawScript;

        public String getRawScript() {
            return rawScript;
        }

        public void setRawScript(String rawScript) {
            this.rawScript = rawScript;
        }

        public String getDeployMode() {
            return deployMode;
        }

        public void setDeployMode(String deployMode) {
            this.deployMode = deployMode;
        }
    }
}
